package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.PersonDiathesisAbilityEstimateForm;
import com.zhijian.medical.entity.vo.request.PersonDiathesisAbilityEstimateFormSearchVo;
import com.zhijian.medical.entity.vo.response.PersonDiathesisAbilityEstimateFormVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 人员-素质能力评估表格 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2023-08-11 15:03:36
 */
public interface PersonDiathesisAbilityEstimateFormService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    PersonDiathesisAbilityEstimateForm selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    PersonDiathesisAbilityEstimateFormVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param personDiathesisAbilityEstimateForm
     * @return
     */
    Long insert(PersonDiathesisAbilityEstimateForm personDiathesisAbilityEstimateForm);

    /**
     * 更改
     *
     * @param personDiathesisAbilityEstimateForm
     * @return
     */
    boolean update(PersonDiathesisAbilityEstimateForm personDiathesisAbilityEstimateForm);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(PersonDiathesisAbilityEstimateForm record);

    /**
     * 总数
     *
     * @param personDiathesisAbilityEstimateFormSearchVo
     * @return
     */
    Integer count(PersonDiathesisAbilityEstimateFormSearchVo personDiathesisAbilityEstimateFormSearchVo);

    /**
     * 列表
     *
     * @param personDiathesisAbilityEstimateFormSearchVo
     * @return
     */
    List<PersonDiathesisAbilityEstimateFormVo> selectList(PersonDiathesisAbilityEstimateFormSearchVo personDiathesisAbilityEstimateFormSearchVo);

    /**
     * 分页查询
     *
     * @param personDiathesisAbilityEstimateFormSearchVo
     * @return
     */
    Page<PersonDiathesisAbilityEstimateFormVo> selectPage(PersonDiathesisAbilityEstimateFormSearchVo personDiathesisAbilityEstimateFormSearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<PersonDiathesisAbilityEstimateForm> entities);

    /**
     * 查询出最新数据的code
     *
     * @return
     */
    String selectMaxCode();

    /**
     * 生成下一个编码
     *
     * @return
     */
    String createNextCode();
}